<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	
	<xsl:import href="base-template.imp.xsl" />

	<xsl:param name="registration-error" />
	<xsl:param name="login" select="''" />
	<xsl:param name="email" select="''" />
	<xsl:param name="telephone" select="''" />
	<xsl:param name="family" select="''" />
	<xsl:param name="name" select="''" />
	<xsl:param name="fname" select="''" />
	<xsl:param name="city" select="''" />

	<xsl:output encoding="UTF-8" method="html" saxon:character-representation="native" xmlns:saxon="http://saxon.sf.net/"/>
	<xsl:template name="content">
		<div class="title">Регистрация </div>	
				<xsl:if test="$registration-error">
					<div class="error">
						<xsl:value-of select="$registration-error" />
					</div>
				</xsl:if>
				<form action="/user/register/check" enctype="multipart/form-data" method="POST">
				<table>
					<tr>
						<td class="text">Логин*: </td>
						<td><input name="login" type="test" value="{$login}" /></td>
					</tr>
					<tr>
						<td class="text">Пароль*: </td>
						<td><input name="password" type="password" /></td>
					</tr>
					<tr>
						<td class="text">Подтверждение*: </td>
						<td><input name="repassword" type="password" /></td>
					</tr>
					<tr>
						<td class="text">Почта*: </td>
						<td><input name="email" value="{$email}" /></td>
					</tr>
					<tr>
						<td class="text">Телефон*: </td>
						<td><input name="telephone" value="{$telephone}" /></td>
					</tr>
					<tr>
    					<td class="text">Фамилия: </td>
    					<td><input name="family" value="{$family}" /></td>
    				</tr>
    				<tr>
    					<td class="text">Имя*: </td>
    					<td><input name="name" value="{$name}" /></td>
    				</tr>
    				<tr>
    					<td class="text">Отчество: </td>
    					<td><input name="fname" value="{$fname}" /></td>
    				</tr>
    				<tr>
						<td class="text">Город: </td>
						<td><input name="city" value="{$city}" /></td>
					</tr>
					<tr>
					<td></td>
    				<td><input type="submit" value="OK!" style="width:100%"/></td>
    				</tr>
				</table>
				</form>
			
				
	</xsl:template>
</xsl:stylesheet>